import multiprocessing as mp
import time
def hashaki(conn):
    while 1:
        conn.send("hashaki")
        #conn.close()        # 如果要一直send，就不要close()啊。。。OSError: handle is closed
        time.sleep(1)

if __name__=='__main__':
    a,b=mp.Pipe()
    p = mp.Process(target=hashaki, args=(a,))
    p.start()
    while 1:
        print(b.recv())
    p.join()